<div id="type_list" class="box">
<?php if ($type_list = $this->get_data('type_list')):?>
<ul>
    <?php foreach ($type_list as $type):?>
        <li><a href="<?php echo m('app')->url(array('m' => 'node', 'a' => 'add', 'type_id' => $type['id']));?>">
            <?php echo $type['name'];?>
        </a></li>
    <?php endforeach;?>
</ul>
<?php endif;?>
</div>
<script>
function sh_node_list() {
    var node_list = z.s('node_list_wrap');
    if (node_list.style.display != 'none') {
        node_list.style.display = 'none';
    } else {
        node_list.style.display = 'block';
    }
}
</script>